package com.design.cjm.structural.proxy.example;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/20
 * @Version 1.0
 */
public class TestApp {

    public static void main(String[] args) {


        List<GiveGife> list = new ArrayList<>();

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }

        Girl littleQing = new Girl("小秦同学");
        Pursuer pursuer = new Pursuer(littleQing);

        GiveProxy giveProxy = new GiveProxy(pursuer);

        giveProxy.giveChocolate();
        giveProxy.giveDoll();
        giveProxy.giveFlower();
    }
}
